package com.ruoyi.framework.config;

import com.ruoyi.framework.interceptor.SealInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @program: NH
 * @description: 封停拦截器配置
 * @author: 郑吉志
 * @create: 2023-02-19 14:27
 **/
@Configuration
public class SealInterceptorConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new SealInterceptor())
                .addPathPatterns("/system/table/exExcel");
    }
}
